<admintpl file="header" />
</head>

<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AppGroup/index')}">群列表</a></li>
			<li><a href="{:U('AppGroup/add')}">新增群</a></li>
			<li><a href="{:U('AppGroup/upload_pic')}">设置群背景音乐</a></li>
		</ul>
		<form class="well form-search pd0" method="post"  id="form1">
			<table class="table table-condensed">
				<tbody>
					<tr>
						<td>
							群名称:
						</td>
						<td>
							<input type="text" name="groupname" class="wd200" value="{$formget.groupname}">
						</td>
						<td>
							群互动id:
						</td>
						<td>
							<input type="text" name="group_uniq_id" class="wd200" value="{$formget.group_uniq_id}">
						</td>
						<td>
							群主动id:
						</td>
						<td>
							<input type="text" name="user_uniq_id" class="wd200" value="{$formget.user_uniq_id}">
						</td>
						<td>
							是否推荐
						</td>
						<td>
							<select class="select2-default" name="is_recommend">
								<option   value="">全部</option>
								<option  <if condition="$formget['is_recommend'] eq 1">selected</if>   value="1">是</option>
								<option  <if condition="$formget['is_recommend'] eq 2">selected</if>   value="2">否</option>
							</select>
						</td>
						
						<td>
						</td>
						<td>
							<input type="submit" class="btn btn-primary" onclick="javascript:form1.action='{:U("AppGroup/index")}';" value="搜索" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>群名称</th>
						<th>群互动id</th>
						<th>群容量</th>
						<th>创建时间</th>
						<th>群主互动id</th>
						<th>是否推荐</th>
						<th>群规模</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<?php
						$is_recommend=array('1'=>'是','2'=>'否');
					?>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.groupname}</td>
							<td>{$vo.group_uniq_id}</td>
							<td>{$vo.maxusers}</td>
							<td>{$vo.create_time}</td>
							<td>{$vo.user_uniq_id}</td>
							<td>{$is_recommend[$vo['is_recommend']]}</td>
							<td>{$group_user[$vo['group_uniq_id']]}</td>
							<td>
								<a href="{:U('AppGroup/edit',array('id'=>$vo['id']))}">编辑</a> 
							</td>
						</tr>
					</foreach>
				</tbody>
				<tfoot>
					<tr>
						<th width="50">ID</th>
						<th>群名称</th>
						<th>群互动id</th>
						<th>群容量</th>
						<th>创建时间</th>
						<th>群主互动id</th>
						<th>是否推荐</th>
						<th>群规模</th>
						<th>操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>

</html>